﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="TTSService.index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Duyệt web thật đơn giản</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="JS/jquery-1.5.js"></script>
    <script type="text/javascript" src="JS/swfobject.js"></script>
    <script type="text/javascript" src="JS/recorder.js"></script>

    <script type="text/javascript">
        $(function () {
            var appWidth = 1;
            var appHeight = 1;
            var flashvars = { 'event_handler': 'microphone_recorder_events' };
            var params = {};
            var attributes = { 'id': "recorderApp", 'name': "recorderApp" };
            swfobject.embedSWF("SWF/recorder.swf", "flashcontent", appWidth, appHeight, "10.1.0", "", flashvars, params, attributes);
        });
    </script>
</head>
<body>
    <div>
        <input id="automaticMode" type="checkbox" onclick="Recorder.setAutoRecord(this.checked);"/>Chế độ tự động<br/>
        <input id="buttonRecord" type="button" value="Ra lệnh" onclick="Recorder.record();"/>
        <div>Trạng thái: <span id="status">Chờ ra lệnh</span></div>
        <div>Mức âm: <span id="activityLevel"></span></div>
        <div>Thiết bị: <span id="microphone"></span></div>
        <span id="flashcontent">
            Your browser must have JavaScript enabled and the Adobe Flash Player installed.
        </span>
    </div>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
